package noppes.vc.items;

import net.minecraft.block.Block;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;

public class ItemBlockNamed extends ItemBlock {
   public String[] names;

   public ItemBlockNamed(Block block) {
      super(block);
   }

   public String getTranslationKey(ItemStack par1ItemStack) {
      return this.names != null && par1ItemStack.getItemDamage() < this.names.length ? this.names[par1ItemStack.getItemDamage()] : this.block.getTranslationKey();
   }
}
